home *** CD-ROM | disk | FTP | other *** search
/ Maclife 2 / MACLIFE02-No-82-1995.ISO.7z / MACLIFE02-No-82.ISO / 特集I / Anarchie-140 / Tutorial < prev   
Text File  |  1994-08-29  |  10KB  |  34 lines

  1. Anarchie Tutorial
  2.  
  3. Launch Anarchie - always a good start in any tutorial :-)
  4.  
  5. First things first.  Whenever you try out a new program, check out the About box and Preferences.  The About box doesnユt require too much explaining.  Now, choose Preferences from the Edit menu (Quinn assures me that the Preferences menu item should always be in the Edit menu, and it doesnユt do to argue with Quinn on Human Interface matters!).  Fill in the Email address field with your Email address (eg, mine is メpeter.lewis@info.curtin.edu.auモ, but use your own, not mine! :-) (BTW, English teachers may tell you that that comma should be inside the quotes.  They are no doubt right, but itユs patently stupid, so I ignore them).  You might want to set your preferred font and size, I like Monaco 9 point myself, but probably just because Iユm use to it.  Turning on logging is often useful.  Anarchie logs to a file called メAnarchie Logモ in the Preferences folder, and you can look at it with the Show Log command.  Double-clicking on an entry in the log window will refetch it.  Logging is useful for when you know you downloaded a file previously, but canユt remember where you got it from.  By default, Anarchie saves files into your desktop (so you can clean up later with the Finder instead of having to use the Standard File horror).  If you prefer, set a different directory to store files into.  The country code should be set for you from your Macユs DNS name.  If it canユt figure it out, it will let you set it yourself.  The Country Code is only used for sorting purposes to figure out the best servers or to list hosts in the best order.  If youユve sent off your cheque to me already (pretty silly, you havenユt even looked at the program yet!) you can click the メI paidモ check box.  All it does is stop the About box from appearing at startup, but please donユt do this until you really have paid.  Click Save to save your changes.
  6.  
  7. Ok, now say you want to find DeHQX (I donユt know why youユd want to, StuffIt Expander is much better, but just pretend you want to find DeHQX).  Choose Archieノ from the file menu.  Pick a server from the popup menu.  In principle you should pick a nearby server.  In practice it doesnユt much matter.  Besides, the servers donユt respond half the time so you end up picking a different one anyway.  
  8.  
  9. Now, what you type in the Find field depends on what setting you have chosen.  The simplest is Sub-string.  The Archie server will return files whose names contain what you type in the search filed.  In this case, メdehqxモ would be a good choice.  But what if there was a program called DeHQX on other machines.  In that case you might want to limit yourself to just Mac programs.  Well, you canユt do that, but you can search for just BinHex files by telling it you want only files that match the pattern メdehqx*.hqxモ, that is they have メdehqxモ followed by any characters (thatユs what the メ*モ means) followed by メ.hqxモ.  Note that the filename doesnユt have to start with メdehqxモ.  メdehqxモ must come before メ.hqxモ, thatユs all.  For example the server might return a program called メcodehqx2.hqxfileモ.  Really patterns offer all the flexibility you are likely to want.  Ignore the next paragraph.
  10.  
  11. Ok, Regular Expressions.  These come from over in Un・x land, and are thus incomprehensible to mere mortals.  But naturally they have a lot of power.  There are better places to learn about regular expressions than here, but Iユll list out some of the import bits.  メ^モ means メat the startモ, メ$モ means at the end, メ.モ matches any character,  メ¥モ stops the next character from being special, メ[abcde]モ matches any character from a through e (you can also write things like メ[A-Za-z0-9]モ which matches any letter or number), メ*モ matches zero or more of the preceding character, メ+モ matches one or more of the preceding character.  So if you were looking for version 2 or 3 of DeHQX in BinHex format, you might try メ^dehqx.*[23].*¥.hqx$モ.  Fun hey?  If you have a Un・x account, you can find out more about Regular Expressions by reading the relevant chapter in the メedモ man page (メman edモ).  Note that patterns are simply converted textually into Regular Expressions (by replacing メ*モ with メ.*モ and so on), so you can make patterns like メ^dehqx*.hqx$モ and it will work.
  12.  
  13. Finally, set the maximum number of matches you want returned (the smaller the number, the faster the search (as well as less load on the server, be a good little net citizen!).  40 is usually plenty.  Turn on case sensitivity if you really want to (itユs usually a bad idea though, since you can never guarantee what case a file will be in on a given FTP site).  Now click Find.  Anarchie will go off and query the server.  While itユs doing this, it displays a cryptic little progress window saying how many packets Anarchie has sent, how many it has gotten back, how many contiguous chunks of information it has received (and when the server finally tells Anarchie, it lets you know how many total chunks it needs to receive).  When it gets all the chunks, it assembles them into a Display window.
  14.  
  15. The Display Window - this is basically just a list of files together with information about them and where to get them from.  In many respects this window behaves like a Finder window.  You can click the headers to sort by the various columns, type in part of a name to select it, double click and it will open the folder, or fetch the file.  The メZoneモ column is not inherently obvious, it is a number that represents the メdistanceモ the site is from you.  It is one for sites in your country, two for sites on your continent (more or less :-), three for the USA, four for Canada, five for everywhere else.  This seems to me to be a fairly close approximation to the Internet layout.
  16.  
  17. Ok, so we have our DeHQX listing, find one that looks promising, and double click it.  Anarchie will fetch it directly to your Mac, and since its a BinHex file, it will forward it on to StuffIt Expander to decode.  Pretty neat huh?
  18.  
  19. But what if you just want to look for a file on Umichユs archive?  Well, Anarchie can do that too.  Simply choose Getノ from the File menu, and type in the host name メmac.archive.umich.eduモ and the path メ/macモ (or just type in メmac.archive.umich.edu:/macモ into the host field, or if you like URLユs (Universal Resource Locatorユs), you can type them in as well).  Itユs a directory, so make sure to select メFetch Listingモ.  Now click List, and presto, another Display Window, this time listing the files on Umich.  What?  Umich wonユt let you in because there are too many people already connected?  No problem, just pick a mirror site.  Choose List Bookmarks and Anarchie will display yet another Display Window, this time with a list of lots of sites for you to loot.  Choose one of the Umich mirrors and double-click it.  Or maybe you want Info-Mac instead?
  20.  
  21. Ok, but say you want a quick way to check out the game directory, you donユt want to have to start from the top each time.  Simply open up one of the mirrors, select the game entry, and instead of double-clicking to fetch it, choose Save Bookmark from the file menu, save that bookmark on the desktop.  Now close all Anarchieユs windows, and switch into the finder, double-click the bookmark file, and presto (again! :-), Anarchie displays the games directory.  Heck, you could move that file into the Startup Items folder, and then everytime your mac starts up, Anarchie will list out the game directory (no, donユt do this, itユs very silly :-).  If you move the bookmark file into Anarchieユs Bookmarks folder it will appear when you choose List Bookmarks (but be careful when you upgrade Anarchie that you donユt lose your old bookmarks!).
  22.  
  23. What is that メViewモ menu item?  If you want to read a file (say one of those ReadMe files that the FTP sites are always telling you to read, or maybe an Abstracts file?), select the file in a Display window, and choose View Selection from the file menu.  Anarchie will download it in ASCII mode into the normal download directory, and then open it in a text editor.  Which text editor?  Well, it checks Dartmouth Fetchユs suffix mappings, and sees what file format youユve set for メ.txtモ and uses that.  Anarchie honours Dartmouth Fetchユs suffix mappings whenever it downloads a file, so make sure youユve set them up to your liking.
  24.  
  25. What happens if the fetch fails?  Well, simply choose Retry from the File menu to retry the fetch (make sure you donユt close that progress window, or itユll be lost forever).  You could also hold the option key down while choosing Edit Retry and that will let you modify the name.  If you know youユve fetched the file some time back, and youユve turned on logging, then you can also use the Show Log command to display the log window, find the entry in there for the file, and double-click that to refetch it.
  26.  
  27. Ok, say someone posts a silly question like メWhere can I find Disinfectant?モ.  Well, you can show them how clever you are, by simply choosing Findノ from the File menu, then search for メdisinfectant*.hqxモ.  When the search comes back, select half a dozen likely candidates (use command and shift clicking to select multiple entries (be careful not to accidentally double-click or youユll end up with half a dozen copies of Disinfectant :-)).  Now choose Copy from the edit menu, and paste it into your reply to them.  It will copy them in the normal host:path format, one to a line.  Of course, in the case of Disinfectant, Anarchie comes with a preset bookmark, so just choose List Bookmarks, select the Disinfectant one and copy that.
  28.  
  29. What does メFetch Server Listモ do?  It fetches the current server list from a site in Texas.  Chris Johnson (author of Gatekeeper and Cron, and generally a nice guy!) was kind enough to set this up for me.  Archie servers come and go very slowly, so donユt bother choosing this more than once or twice a year.
  30.  
  31. Well, that should get you started.  Have fun!
  32.    Peter.
  33.  
  34.